<?php
//links module, xmobile plugin v1
//wye , http://never-ever.info/
//RENAME : links.php --> {dirname}.php  
///////////////////////////////////////////////////////////////////////////////////////////////////
if(!defined('XOOPS_ROOT_PATH')) exit();
require_once XOOPS_TRUST_PATH.'/modules/links/class/XmobilePlugin.class.php' ;

$mydirname = strtolower(basename(__FILE__,'.php'));
$Pluginname = ucfirst($mydirname);
if(!preg_match("/^\w+$/", $Pluginname))
{
	trigger_error('Invalid pluginName');
	exit();
}


eval('
class Xmobile'. $Pluginname .'Plugin extends XmobileLinksPluginAbstract
{
	function Xmobile'. $Pluginname .'Plugin()
	{
		$this->__construct( "'.$mydirname.'" ) ;
	}
}

class Xmobile'. $Pluginname .'PluginHandler extends XmobileLinksPluginHandlerAbstract
{
	function Xmobile'. $Pluginname .'PluginHandler( $db )
	{
		$this->__construct( "'.$mydirname.'" , $db ) ;
	}
}
' ) ;

?>